// 引入封装好的请求对象
import http from '@/utils/http'
// 新增接口地址的接口方法
export const reqAddAddress = (data) => http.post('/userAddress/save', data)
// 获取收货地址列表的接口方法
export const reqAddressList = () =>
  http.get('/userAddress/findUserAddress')
// 获取收货地址详情的接口方法
export const reqAddressDetail = (id) => http.get(`/userAddress/${id}`)
// 更新收货地址的接口方法
export const reqUpdateAddress = (data) =>
  http.post('/userAddress/update', data)
// 删除收货地址的接口方法
export const reqDeleteAddress = (id) =>
  http.get(`/userAddress/delete/${id}`)
